package com.serviceprovider.business.module.admin.messages.serivces.dao.interfaces;

//~--- non-JDK imports --------------------------------------------------------

import com.serviceprovider.business.module.admin.messages.model.Message;
import com.serviceprovider.business.module.admin.role.model.Role;
import com.serviceprovider.business.module.admin.user.model.OldUser;
import com.serviceprovider.business.module.common.Page;
import com.serviceprovider.business.module.user.model.impl.User;

//~--- JDK imports ------------------------------------------------------------

import java.util.List;

public interface IMessagesService {
    public void insert(Message message);

    public void delete(int id);

    public void deleteMany(String ids);

    public void update(Message message);

    public Page<Message> getAll(int pageNo, int recordSize, String sortColumn, String sortOrder);

    public List<String> getAllForRole(Role role);

    public List<String> getAllForUser(User user);

    public List<Message> getAllActive();

    public List<Message> getAllNotExpired();

    public Message getById(int id);

    List<String> getAllForUserRole(User user, Role role);
}



